package oo7.printer;

public class Printer {
	private String brand;
	private int money;
	// 打印机有墨水的接口
	private Ink ink;// null
	private Paper paper;// null

	public void print(String content) {
		System.out.println("价值" + money + "元的" + brand + " 开始打印");
		System.out.println("有的墨水是：" + ink.getColor());
		paper.print(content);
	}

	// 安上墨盒，安上纸张
	public void setInk(Ink i) {
		ink = i;
	}

	public void setPaper(Paper p) {
		paper = p;
	}

	public Printer(String brand, int money) {
		super();
		this.brand = brand;
		this.money = money;
	}

}
